function warning_msg(msg, callback) {
    BootstrapDialog.alert({
        title: "消息提示",
        message: msg,
        type: BootstrapDialog.TYPE_WARNING,
        callback: callback
    });
}

function danger_msg(msg, callback) {
    BootstrapDialog.show({
        title: "消息提示",
        message: msg,
        type: BootstrapDialog.TYPE_DANGER,
        buttons: [
            {
                label: '取消',
                cssClass: 'btn-primary',
                action: function (obj) {
                    obj.close();
                }
            },
            {
                label: "确认",
                cssClass: 'btn-success',
                action: function (obj) {
                    callback();
                    obj.close();
                }
            }
        ]
    });
}

function success_msg(msg, callback) {
    BootstrapDialog.alert({
        title: "消息提示",
        message: msg,
        type: BootstrapDialog.TYPE_SUCCESS,
        callback: callback
    });
}

function wrong_msg(msg) {
    BootstrapDialog.alert({
        title: "消息提示",
        message: msg,
        type: BootstrapDialog.VALIDATION_ERR,
    });
}